package com.mall.seckill_mall.dao;

import com.mall.seckill_mall.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface UserDao {

    User selectOne(@Param("userId") String userId);
    int insertOne(@Param("user") User user);
    int updatePassWord(@Param("userId") String userId, @Param("password") String password);

    int updateBalance(@Param("userId") String userId, @Param("balance") double balance);
}
